home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
eu1_00.zip
/
UC.MAN
< prev
next >
Wrap
Text File
|
1980-01-01
|
4KB
|
99 lines
Eldar Utilities Ver.1.00
Universal Call
and
Type Emulator
(C) Eldar Software, 1991
The UC (Universal Call) utility allow you to call programs
with imitation of keyboard input. UC has two parameters:
- full name of program to be executed;
- string to be emulated for this program as a keyboard input.
You can insert in this string blanks as much as possible to
fit into a command line. You can also use control codes in form
^<Capital letter>, e.g. LF is ^J, CR is ^M, NUL is ^@, ESC is ^[.
To place in string symbol '^' type it twice.
Suppose, you want to use Turbo Pascal Ver.3.0 as a text
editor. It is suitable, small, sufficiently effective, has very
quick initialization. The problem is thatit takes file name only
interactively from the keyboard. Suppose it is placed in directory
\link\ on drive c:, then make the one-line batch file tpe.bat:
uc c:\link\turbo.com NE%1^M
After that use the command:
tpe file-name
to edit file. First letter in string ('N') is a reply for the Turbo
Pascal request 'Load error messages ?(Y/N)', next letter ('E')
is a command to edit file, after that the choosen file name (%1)
is placed and will be entered on the request 'Work file:', and after
that the key 'Return' (^M) is emulated.
Note that UC requires FULL name of program except the cases
when it is used from the same directory as the directory where the
program to call is placed. In another words it does not feel PATH=
string in environment. It is done in this way to avoid accidental
mixions of files, which can lead to system hang-ups, and because
UC is mostly used in batch files, where PATH-sensitive loading
is not needed.
The extension of file name is also necessary.
Sometimes it is needed to have a long input string, which
cannot fit into a command line, or to avoid specification of
file name extension of full path. In such cases use TE (Type Emulator)
utility. It calls command processor and emulate the input from
the file name specified by the first parameter. Such approach differs
from ordinary batch file or from the redirection of command.com
input by the fact, that input is emulated not only for the command
processor, but also for any program it calls. For example, if you
use uucp communication in one place, but prepare messages on another
computer. Standard dialog to send a message in uupc in MS-DOS if
you have a message in file is the next (your answers by capital letters):
c:\mailbox\yourname\>MAIL EMAIL-ADDRESS
Subject:TEXT-OF-SUBJECT
~R FILE-NAME
file-name: xxxx bytes/xxx lines are read.
.
Abort, Continue, Edit or Send ? S
cc:
So your answers should be placed in the next order:
mail EMAIL-ADDRESS<RETURN>
TEXT-OF-SUBJECT<RETURN>
~r FILE-NAME<RETURN>
.<RETURN>
s<RETURN>
<RETURN>
So you can prepare file typein.txt where this text is repeated
for every letter and finished by command 'exit<RETURN>' to leave
secondary command processor. Note that here you don't needed to
specify file name extension, and you can use path= directories
as default.
Control codes are also descripted as ^<Capital-letter> as for UC,
but here you can insert them in file directly. The special case
is the sequence <CR><LF> which are present in the file in the end
of every line. <LF> in this case is omitted so if you really want
to have this sequence of values specify <LF> as ^J, e.g.
...
^J ...
or
... ^M^J ...
Note that it is necessary to place command exit in the end of your
file to exit from the secondary command processor, invoked by TE.